package kr.saeildamil.androidstudy.example01;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

public class ExButtonAndEditText extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch04_buttonandedittext);
	}
	
	public void mOnClick(View v){
		EditText et = (EditText) findViewById(R.id.btnandedit_edit);
		String str = et.getText().toString();
		Toast.makeText(this, "입력한 글자는" + str + "입니다.", Toast.LENGTH_SHORT).show();
	}
}
